package test;

import http.SimpleHttpServer;

/**
 * @ClassName MyServlet
 * @Description
 * @Author lichuanqi
 * @Date 2021/12/16 19:28
 * @Version 1.0
 **/
public class MyServlet extends SimpleHttpServer.HttpServlet {

    @Override
    protected void doGet(SimpleHttpServer.Request request, SimpleHttpServer.Response response) {
        System.out.println("get请求处理");
        response.setBody("Hello Get");
    }

    @Override
    protected void doPost(SimpleHttpServer.Request request, SimpleHttpServer.Response response) {
        System.out.println("post请求处理");
        response.setBody("Hello Post");
    }
}
